package com.aiyige.utils;

import android.text.InputFilter;
import android.text.Spanned;

/**
 * Created by zhuyakun on 2018/3/15.
 */

public class ExcludeEnterInputFilter implements InputFilter {
    @Override
    public CharSequence filter(CharSequence source, int start, int end, Spanned dest, int dstart, int dend) {
        return source.toString().replace("\n", "");
    }
}
